<?php

namespace app\api\controller;

use app\api\model\Advertisement AS AdvertisementModel;
use app\common\controller\Send;
use think\Controller;
class Advertisement extends Controller
{
    
    
    use Send;
    /**
     * 广告页
     * @return array
     * @throws \think\Exception\DbException
     */
    public function index()
    {
        $data = input('');
        $res = AdvertisementModel::getAdvertisementOne();
        return self::sendResult($res['code'], $res['data'], $res['msg']);
    }

   
   
}